package com.LMZ.RPC.myRPCV5.service.Impl;

import com.LMZ.RPC.myRPCV5.common.entity.User;
import com.LMZ.RPC.myRPCV5.service.UserService;

public class UserServiceImpl implements UserService {
    @Override
    public User getUserById(Integer id) {
        // 模拟从数据库中取用户的行为
        User user = User.builder().id(id).userName("he2121").sex(true).build();
        System.out.println("客户端查询了" + id + "用户");
        return user;
    }

    @Override
    public Integer insertUser(User user) {
        System.out.println("插入数据成功：" + user);
        return 1;
    }
}